﻿#define Debug
//#define Release
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text; 
using System.Reflection;
using System.Diagnostics; 
using Wedo.Utility.Log;
using Wedo.Recognition.Domain;
using Wedo.Recognition.Service;

namespace Wedo.IPRP.TransferVoucher.JOB
{
    class Program
    {
        static void Main(string[] args)
        {
            //DddWorks.ObjectContainer.Instance.RegisterType(typeof(DddWorks.EntityCRUD.IEntityMgr<>), typeof(DddWorks.EntityCRUD.SEntityMgr<>));
           // DddWorks.Domain.EntityResolver.Instance.ResoleAll();
           // ApplicationContext.Current.UserName = "System";

            TransferVoucherService service = new TransferVoucherService(Container_Config.GetIUnitWork());
            var result = service.CreateTransferVoucher();
            if (result == true)
            {
                Logger.LogDebug("Wedo.IPRP.TransferVoucher.JOB", "", string.Format("{0} success.", DateTime.Now),"");
            }
            else
            {
                Logger.LogDebug("Wedo.IPRP.TransferVoucher.JOB", "", string.Format("{0} failure.", DateTime.Now), "");
            }
        }
    }
}
